from django.contrib import admin


admin.site.site_header = '志愿吧管理后台'  # 设置header
admin.site.site_title = '志愿吧管理后台'   # 设置title
admin.site.index_title = '志愿吧管理后台'
# Register your models here.

from .models import UserInfo, LeaveWordInfo


class UserInfoManager(admin.ModelAdmin):
    list_display = ['user_name', 'nick_name', 'real_name']
    list_display_links = ['user_name']


admin.site.register(UserInfo, UserInfoManager)


class LeaveWordInfoManager(admin.ModelAdmin):
    list_display = ['leave_word_content']
    list_display_links = ['leave_word_content']


admin.site.register(LeaveWordInfo, LeaveWordInfoManager)
